home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / keyb / cedwars2.zip / CEDWARS.DOC < prev    next >
Text File  |  1988-09-23  |  12KB  |  271 lines

  1.  
  2.  
  3.                  C      E      D      W      A      R      S 
  4.      --------------------------------------------------------------------
  5.                  C      E      D      W      A      R      S 
  6.  
  7.               >>>>> Attack of the Killer Macros!!!!!!!!!!!!!!!!
  8.  
  9.  
  10.                                                 Dave Williams
  11.                                                 (501)568-9464 UBBS (home bd.)
  12.                                                 (408)728-5598 Nitemod
  13.                                                 (206)745-4694 ProTech
  14.                                                 (404)454-8756 Pecan Pi
  15.                                               or PO Box 181
  16.                                                 Jacksonville, AR 82076-0181 USA
  17.  
  18.   CED (for Command EDitor) is a powerful utility which enhances the DOS
  19. command line interface. Among the functions provided are improved command
  20. line editing and previous command retrieval, command synonyming and
  21. parameterization, and the ability to cause automatic recall of previously
  22. used parameters for specified commands. CED will also work inside "compatible" 
  23. programs that take input from DOS STDIN, such as debug, symdeb, list.com, 
  24. early Infocom games, etc. You quickly become addicted to the power of CED.
  25.  
  26.                     CED - don't compute without it!
  27.  
  28.  The lack of anything like CED is one reason I've stayed with MSDOS systems. 
  29. Some of the Unix shells have a similar capability, and I've heard there's a 
  30. similar desktop utility for the MacIntosh, but as far as I know the Amiga and 
  31. ST don't have anything like it.
  32.  
  33.  Chris Dunford (you can find him as the IBM section sysop on Compu$erve) 
  34. donated CED to the public domain; you don't have to send him any conscience 
  35. money. Chris's Cove Software Group also sells a somewhat fancier version 
  36. called ProCED with some enhanced capabilities.
  37.  
  38.   PC Tech Journal had a rave review of ProCED in 1987. Dr. Dobbs' Journal 
  39. listed CED as one of the top-10 programs used by professional programmers. 
  40. Unfortunately, Chris's documentation is a little overpowering to a novice 
  41. user. I've found most CED users learned macros by being introduced to them by 
  42. someone else who was already using them, etc.
  43.  
  44.  When IBM first contracted with Microsoft for PC-DOS 2.0, it was intended that 
  45. DOS would run a 'shell' program similar to the Unix csh. For some reason this 
  46. never materialized, possibly because most commercial software packages already
  47. either ignored command.com or carried their own DOS-level interfaces. Anyway, 
  48. IBM never released their command line DOS shell, going to a menu system with 
  49. DOS 4.0 (US version). So with CED, you get the DOS you should have had all 
  50. along.
  51.  
  52.  The two Compu$erve threads are from Basil Copeland's screen dumps. The rest 
  53. of the stuff is from "around".
  54.  
  55. *******************************************************************************
  56.  
  57.  The last public domain version of CED was version 1.0D. You can check your 
  58. version with the command "CED VER" at the DOS prompt.
  59.  I have seen a number of archives called CED10D.ARC that actually have the 
  60. 1.0C version of CED. The doc files were all for 1.0D.
  61.  There is a file called CED150.ARC, purporting to be CED version 1.50. I have 
  62. downloaded several of these, and they are all apparently 1.0C with the arc 
  63. name changed.
  64.  
  65. *******************************************************************************
  66.  
  67.  CED and environment variables
  68.  
  69.  CED apparently cannot access the DOS environment even though it communicates 
  70. through STDIN. I set a parameter in my autoexec.bat (SET HOMEDIR=\pro\asm\asrc)
  71. and reference it with a small batch file:
  72.                 @if not /%HOMEDIR%==/ cd %HOMEDIR%
  73.  Changing the file to a CED synonym
  74.                 syn home if not /%HOMEDIR%==/ cd %HOMEDIR%
  75. resulted in "invalid directory" messages from DOS. Running it with ECHO on, I 
  76. found that CED was passing 
  77.                 cd %HOMEDIR%
  78. instead of the environment variable.
  79.  
  80. *******************************************************************************
  81.  
  82.  If you have more than one syn with the same name, CED will report
  83.         CED: Invalid command
  84.  This isn't documented in the manual and the repeated error messages can drive 
  85. you nuts until you figure out that is wrong.
  86.  
  87. *******************************************************************************
  88.  
  89.  
  90. From:    Hector Santos 
  91. To:      Steve Khanell                            Msg #177, 25-Jul-88 18:17cst
  92. Subject: Re: CED
  93.  
  94. >
  95. >I frequently hear of a program called CED being mentioned.  What exactly
  96. >does this program do?
  97. >
  98.  
  99. CED is a keyboard enhancement program. It's quite powerful. The basic
  100. feature in CED and other keyboard programs is the DOS command recaller.
  101. By using your up and down arrow keys you can recall the previous DOS
  102. commands you entered. I forget exactly how much it can remember.
  103. Once you recall a DOS command, you can use your left and right arrows
  104. to edit the command before hitting ENTER. Insert/Overwrite is also
  105. supported.
  106.  
  107. But the main feature in CED, which is a idea born on VAX machines, is
  108. the ability to create "synomyns". How many times do you create a batch
  109. file just to run a program or group of programs? With CED you create
  110. a synomyn. For example;
  111.  
  112. CED SYN  d  dir
  113.  
  114. this command allows the D to represent the dir command. So when you
  115. hit D, and ENTER. The dir command is issued to DOS.
  116.  
  117. Here's a few I use a lot.
  118.  
  119. syn d        dir %1 %2 %3 %4
  120. syn t4c      tpc %1 /M /T\turbo4 /U\turbo4\units;\turbo4\power
  121. syn flist    pc-flist /q %1 %2 %3 %4
  122. syn purge    erase *.bak
  123. syn purgall  wh *.bak /d %1 %2 %3
  124.  
  125. The T4C is a synomyn for a turbo pascal compiler. I like the purge
  126. commands to erase my bak files from disk from time to time. Notice you
  127. can pass parameters just like batch files. Synomyns are great. They
  128. reduce batch files which take up space, and the commands are
  129. instantaneously executed.
  130.  
  131. This the only way I use CED, the recaller and synomyns. But there is
  132. a whole slew of features that I myself have not used and don't much about
  133. it.
  134.  
  135. <hec>
  136.  
  137. --- Via OpXpress V1.02  Once Around the World....
  138.  * Origin: Pitt Xpress : Home of Opus Xpress (412) 864-2294 (1:129/82)
  139.  
  140. *******************************************************************************
  141.  
  142. From   : MIKE ARST
  143. To     : DAVE WILLIAMS
  144. Subject: (R) CEDWARS1
  145. Folder : A, "Main Message Area"
  146.  
  147. I got that file and saw, to my great pleasure, that there's a patch to
  148. make CED default to insert-mode. However, it's extensive enough and I'm
  149. ignorant enough about using DEBUG that I'm a little concerned about
  150. trying it lest I do something, uh, dangerous. A little knowledge in the
  151. hands of an idiot, after all ...
  152.  
  153. Favorite CED synonyms:
  154. STATCH ^D to make getting the list of synonyms a bit easier to type,
  155.           than using the default key;
  156. SYN W WHIZ C:%1      to call up the blindingly fast file-finder WHIZ
  157. SYN WD WHIC D:%1     same as last one, only searches drive D:
  158. SYN ? LIST C:\UTIL\CED.CNF to get a "page-able" view of the CED synonym
  159.                            list (the list I use is pretty large).
  160. SYN V PKUNPAK /CM %1 %2  - "V", then supply an .ARC file name and then
  161.                            the name of a member file to view. This one supplies
  162.                            the /CM switch so that the file specified in %2 is
  163.                            extracted to the console, and the display is paged.
  164.                            You could get much fancier than that, like:
  165. SYN V PKUNPAK /CM %1 %2 > E:\TEMP.TXT^LIST E:\TEMP.TXT^DEL E:\TEMP.TXT
  166.                  ... if you would prefer a "paged" display of the member files.
  167. SYN G ECHO <esc>[J<esc>12;0H
  168. where <esc> is actually entered into the CED.CNF file using ALT 27.
  169. ... clears the screen and puts the cursor at row 12, column 0, which I
  170. prefer to the "home" position.
  171.  
  172. CED experts, plz. advise: I tried doing the last one as:
  173. SYN G CLS^ECHO <esc>[12;0H  - but CED seems to accept an ECHO command
  174. like that ONLY if it is the *first* command in the synonym. Anyone know
  175. why that is? If you do it as in the 2nd exam